package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.bo.WxFeedbackBO;
import com.cskaoyan.bean.pojo.MarketFeedback;
import com.cskaoyan.service.WxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.Max;

/**
 * @author Tang_XueCheng
 * @description
 * @since 2022/04/09 14:10
 */
@RestController
@RequestMapping("wx")
public class WxFeedbackController {
    @Autowired
    WxFeedbackService wxFeedbackService;

    @RequestMapping("feedback/submit")
    public BaseRespVo submit(@RequestBody @Validated WxFeedbackBO wxFeedbackBO) {
        wxFeedbackService.feedbackSubmit(wxFeedbackBO);
        return BaseRespVo.ok();
    }
}
